package luweiteng.demoForLogin.constant;

public enum ErrorCode {
    /*
    * 各个枚举类型，如说明
    * */
    COMMON_NO_LOGIN(1001,"未登录"),
    COMMON_USER_NAME_PASSWORD(1002,"用户名或密码错误"),
    COMMON_ILLEGA_LOGIN_TYPE(1003,"登陆类型错误"),
    ACCOUNT_STATUS_ERROR(1004,"账号状态错误，请联系管理员");

    private Integer errorCode;
    private String errorMsg;

     ErrorCode(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
